package com.chiga.listener;

import javax.servlet.ServletContextEvent;

import org.springframework.web.context.ContextLoaderListener;

public class ApplicationListener extends ContextLoaderListener {
	
	@Override
	public void contextDestroyed(ServletContextEvent sce) {
  
    }
	
	@Override
    public void contextInitialized(ServletContextEvent sce) {  
    	String webRootKey = sce.getServletContext().getRealPath("/");  
        System.setProperty("WebRoot" , webRootKey);
    }
}
